package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 临时学员，补课学员
 * </p>
 *
 * @author hpiggy
 * @since 2024-11-06
 */
@Data
@TableName("student_grade_temporary")
@ApiModel(value = "StudentGradeTemporary对象", description = "临时学员，补课学员")
public class StudentGradeTemporary implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("排课id【此字段作废】")
    private Long schedulingDetailId;

    private Integer yearPart;

    private Integer quarterNum;

    @ApiModelProperty("班级id")
    private Long gradeId;

    @ApiModelProperty("学员id")
    private Long studentId;

    @ApiModelProperty("0临时学员，1补课学员")
    private Integer type;

    @ApiModelProperty("上课时间")
    private LocalDate schoolDate;

    private String timeStart;

    private String timeEnd;

    private LocalDateTime startDateTime;

    private LocalDateTime endDateTime;

    private Integer lessonType;

    private Long subjectsId;

    private Integer yearClassId;

    private Integer isSignIn;

    @ApiModelProperty("是否删除，0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;

    @TableField(exist = false)
    private String studentName;

    @TableField(exist = false)
    private String schoolName;

    @TableField(exist = false)
    private String gradeName;

    @TableField(exist = false)
    private String courseName;

    @TableField(exist = false)
    private String teacherName;

    @ExcelIgnore
    @TableField(exist = false)
    private List<Long> studentIdList;

    @ExcelIgnore
    @TableField(exist = false)
    private List<LocalDate> schoolDateList;

}
